const express = require('express')
const router = express.Router()
const cart = require('../router_handle/cart')

//获取购物车列表
router.get("/:page",cart.list)
//添加购物车商品
router.post("/",cart.add)
//删除购物车商品
router.post("/delete",cart.delete)
//修改购物车商品
router.post("/:id/update",cart.update)
module.exports=router